package com.webproject.service.impl.houseManager;

import java.util.List;

import com.webproject.core.Page;
import com.webproject.dao.houseManager.RoomManagerDao;
import com.webproject.entity.houseManager.AcceptRoomInfo;
import com.webproject.entity.houseManager.Room;
import com.webproject.entity.houseManager.RoomInfo;
import com.webproject.entity.houseManager.RoomRepairInfo;
import com.webproject.service.houseManager.RoomManagerService;

public class RoomManagerServiceImpl implements RoomManagerService {

	private RoomManagerDao roomManagerDao;
	public RoomManagerDao getRoomManagerDao() {
		return roomManagerDao;
	}

	public void setRoomManagerDao(RoomManagerDao roomManagerDao) {
		this.roomManagerDao = roomManagerDao;
	}

	@Override
	public void queryRoom(Page page) {
		// TODO Auto-generated method stub
		page.setRows(roomManagerDao.queryRoom(page));
		page.setRecords(roomManagerDao.queryRoomCount(page));
	}

	@Override
	public void queryRoomInfo(Page page) {
		// TODO Auto-generated constructor stub
		page.setRows(roomManagerDao.queryRoomInfo(page));
		page.setRecords(roomManagerDao.queryRoomInfoCount(page));
	}
	@Override
	public void saveRoomInfo(RoomInfo roomInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.saveRoomInfo(roomInfo);
	}

	@Override
	public void updateRoomInfo(RoomInfo roomInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.updateRoomInfo(roomInfo);
	}

	@Override
	public void deleteRoomInfo(RoomInfo roomInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.deleteRoomInfo(roomInfo);
	}

	@Override
	public void saveRoom(Room room) {
		// TODO Auto-generated constructor stub
		roomManagerDao.saveRoom(room);
	}

	@Override
	public void updateRoom(Room room) {
		// TODO Auto-generated constructor stub
		roomManagerDao.updateRoom(room);
	}

	@Override
	public void deleteRoom(Room room) {
		// TODO Auto-generated constructor stub
		roomManagerDao.deleteRoom(room);
	}

	@Override
	public void queryRoomRepairInfo(Page page) {
		// TODO Auto-generated constructor stub
		page.setRows(roomManagerDao.queryRoomRepairInfo(page));
		page.setRecords(roomManagerDao.queryRoomRepairInfoCount(page));
	}

	@Override
	public void saveRoomRepairInfo(RoomRepairInfo repairInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.saveRoomRepairInfo(repairInfo);
	}

	@Override
	public void updateRoomRepairInfo(RoomRepairInfo repairInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.updateRoomRepairInfo(repairInfo);
	}

	@Override
	public void deleteRoomRepairInfo(RoomRepairInfo repairInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.deleteRoomRepairInfo(repairInfo);
	}

	@Override
	public void queryAcceptRoomInfo(Page page) {
		// TODO Auto-generated constructor stub
		page.setRows(roomManagerDao.queryAcceptRoomInfo(page));
		page.setRecords(roomManagerDao.queryAcceptRoomInfoCount(page));
	}

	@Override
	public void saveAcceptRoomInfo(AcceptRoomInfo acceptRoomInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.saveAcceptRoomInfo(acceptRoomInfo);
	}

	@Override
	public void updateAcceptRoomInfo(AcceptRoomInfo acceptRoomInfo) {
		// TODO Auto-generated constructor stub
		roomManagerDao.updateAcceptRoomInfo(acceptRoomInfo);
	}

	@Override
	public List<RoomInfo> queryRoomInfo() {
		// TODO Auto-generated constructor stub
		return roomManagerDao.queryRoomInfo();
	}

}
